#pragma once
#include <vector>
#include "Triangle.h"
#include "Vector3.h"

class BoundingBox
{
private:
	float xMin;
	float yMin;
	float zMin;
	float xMax;
	float yMax;
	float zMax;
public:
	BoundingBox(float xmin,float ymin,float zmin,float xmax, float ymax, float zmax);
	BoundingBox(Vector3<float> origin, float width,float height,float depth);
	BoundingBox(std::vector<Triangle> model);
	~BoundingBox(void);

	float Width();
	float Height();
	float Depth();

	void Draw();

	Vector3<float> Mins();
	Vector3<float> Maxes();

	void Translate(Vector3<float> distance);

	bool Contains(BoundingBox box);
	bool Touching(BoundingBox box);
};

